package com.aptemo.webetek.client.commands.responses;

import com.aptemo.webetek.shared.LabelBean;
import com.google.gwt.user.client.rpc.AsyncCallback;

public abstract class GotAddLabelCallback implements AsyncCallback<LabelBean>
{

	@Override
	public void onFailure(Throwable caught)
	{
		onError(caught.getLocalizedMessage());
	}

	@Override
	public void onSuccess(LabelBean result)
	{
		got(result);
	}

	public abstract void got(LabelBean bet);

	public abstract void onError(String message);

}
